﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Biblio2.Configuration
{
    class ConfigurationManager
    {
        #region Singleton
        private static ConfigurationManager m_instance = null;

        private ConfigurationManager() 
        {
            m_filesConfiguration = new FilesConfiguration();
            m_onlineConfiguration = new OnlineConfiguration();
        }

        private static ConfigurationManager GetInstance()
        {
            if (m_instance == null)
                m_instance = new ConfigurationManager();

            return m_instance;
        }
        #endregion Singleton

        #region FilesConfiguration
        private FilesConfiguration m_filesConfiguration;

        public static FilesConfiguration FilesConfiguration { get { return GetInstance().m_filesConfiguration; } }
        #endregion FilesConfiguration

        #region OnlineConfiguration
        private OnlineConfiguration m_onlineConfiguration;
        public static OnlineConfiguration OnlineConfiguration { get { return GetInstance().m_onlineConfiguration; } }
        #endregion OnlineConfiguration

    }
}
